package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * @Description: 点巡检标准明细
 * @Author: wxy
 * @Date:   2021-09-15
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_CHECK_DETAIL")
@Schema(description="点检标准明细")
public class EquipmentCheckDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

	/**主键*/
    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    @Schema(description = "ID")
	private String id;
	/**分类*/
    @Column(name = "CATEGORY_ID_")
    @Schema(description = "分类")
	private String categoryId;
	/**序号*/
    @Column(name = "NUM_")
    @Schema(description = "序号")
	private Integer num;
	/**内容*/
    @Column(name = "CONTENT_")
    @Schema(description = "内容")
	private String content;
	/**内容类型*/
    @Dict(dicCode = "ERP_EQUIPMENT_COMMENT_TYPE")
    @Column(name = "CONTENT_TYPE_")
    @Schema(description = "内容类型")
	private String contentType;
	/**属性值单位*/
    @Column(name = "ATTRIBUTE_UNIT_")
    @Schema(description = "属性值单位")
	private String attributeUnit;
	/**存在选项*/
    @Dict(dicCode = "ERP_COMMON_YESNO")
    @Column(name = "CHOOSE_ENABLE_")
    @Schema(description = "存在选项")
	private Integer chooseEnable;
	/**部位描述*/
    @Column(name = "PLACE_DESCRIBE_")
    @Schema(description = "部位描述")
	private String placeDescribe;
	/**方法*/
    @Column(name = "METHOD_")
    @Schema(description = "方法")
	private String method;
	/**目标*/
    @Column(name = "TARGET_")
    @Schema(description = "目标")
	private String target;
	/**是否记录属性*/
    @Dict(dicCode = "ERP_COMMON_YESNO")
    @Column(name = "IS_RECORD_")
    @Schema(description = "是否记录属性")
	private Integer isRecord;
	/**上限值*/
    @Column(name = "UPPER_LIMIT_")
    @Schema(description = "上限值")
	private Double upperLimit;
	/**下限值*/
    @Column(name = "LOWER_LIMIT_")
    @Schema(description = "下限值")
	private Double lowerLimit;
	/**告警阈值*/
    @Column(name = "WARN_VALUE_")
    @Schema(description = "告警阈值")
	private Double warnValue;
	/**预警阈值*/
    @Column(name = "EARLY_WARN_VALUE_")
    @Schema(description = "预警阈值")
	private Double earlyWarnValue;
	/**估计用时(分钟)*/
    @Column(name = "EVALUATE_TIME_")
    @Schema(description = "估计用时(分钟)")
	private Integer evaluateTime;
	/**标准图片*/
    @Column(name = "PIC_")
    @Schema(description = "标准图片")
	private String pic;

	@Transient
    private String paramId;


}
